import React from 'react';
import { Router, Route, Switch } from 'dva/router';
import IndexPage from './routes/IndexPage';
import Demo from './routes/demo'
import Pro from './routes/pro'
import Father from './routes/Father';
import AddCount from './routes/Add';
import Work from './routes/work/work'
import Money from './routes/money/money'

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/" exact component={Work} />
        <Route path="/demo" exact component={Demo}/>
        <Route path="/pro" exact component={Pro}/>
        <Route path="/father" exact component={Father}/>
        <Route path="/add" exact component={AddCount}/>
        <Route path="/work" exact component={Work}/>
        <Route path="/money" exact component={Money}/>
      </Switch>
    </Router>
  );
}

export default RouterConfig;
